import { createApp } from 'vue'
import router from '@/router/index.ts';
import { VueQueryPlugin } from '@tanstack/vue-query';
import { WagmiPlugin } from '@wagmi/vue';
import { config } from '@/assets/wagmi_config'
// 持久化存储
import { createPinia } from 'pinia'
import piniaPersist from 'pinia-plugin-persist'

import '@/assets/css/index.scss'
import App from './App.vue'


const pinia = createPinia()
pinia.use(piniaPersist)

const app = createApp(App);
app.use(router);
app.use(pinia);
app.use(WagmiPlugin, { config });
app.use(VueQueryPlugin, {});
app.mount('#app');
